package io.wdb.modules.activity.wxapp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import io.wdb.common.utils.UUIDGenerator;


import io.wdb.modules.activity.wxapp.dao.HdShareRecordDao;
import io.wdb.modules.activity.wxapp.entity.HdShareRecordEntity;
import io.wdb.modules.activity.wxapp.service.HdShareRecordService;



@Service("hdShareRecordService")
public class HdShareRecordServiceImpl implements HdShareRecordService {
	@Autowired
	private HdShareRecordDao hdShareRecordDao;
	
	@Override
	public HdShareRecordEntity queryObject(String id){
		return hdShareRecordDao.queryObject(id);
	}
	
	@Override
	public List<HdShareRecordEntity> queryList(Map<String, Object> map){
		return hdShareRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return hdShareRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(HdShareRecordEntity hdShareRecord){
		hdShareRecord.setId(UUIDGenerator.getUUID());
		hdShareRecordDao.save(hdShareRecord);
	}
	
	@Override
	public void update(HdShareRecordEntity hdShareRecord){
		hdShareRecordDao.update(hdShareRecord);
	}
	
	@Override
	public void delete(String id){
		hdShareRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		hdShareRecordDao.deleteBatch(ids);
	}
	
}
